﻿using DAMS.Models;
using System.ComponentModel.DataAnnotations;

namespace DAMS.Web.Areas.Manage.Models
{
    public class CategoryEditViewModel
    {
        public int ID { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Display(Name ="分类名称")]
        public string Name { get; set; }
        [Display(Name = "分类类型")]
        public CategoryType Type { get; set; }
        /// <summary>
        /// 显示位置
        /// </summary>
        [Display(Name = "显示位置")]
        public int ShowType { get; set; }
        /// <summary>
        /// 模版或Url
        /// </summary>
        [Display(Name = "模版或Url")]
        public string Template { get; set; }
        /// <summary>
        /// 内容页模版
        /// </summary>
        [Display(Name = "内容页模版")]
        public string ArticleTemplate { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name = "内容")]
        public string Content { get; set; }
        /// <summary>
        /// 父分类名称
        /// </summary>
        [Display(Name = "父分类名称")]
        public string ParentCategoryName { get; set; }

        public string TemplatesJson { get; set; }
        /// <summary>
        /// HTML页面的描述
        /// </summary>
        [Display(Name = "HTML页面描述")]
        public string HtmlDescription { get; set; }
        /// <summary>
        /// Html页面关键字
        /// </summary>
        [Display(Name = "HTML页面关键字")]
        public string HtmlKeyWord { get; set; }
    }
}